﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Calculate
    {
        protected int A;
        protected int B;
        public Calculate() { }
        public Calculate(int a,int b)
        {
            this.A = a;
            this.B = b;
        }
        public void Count()
        { 
            Console.WriteLine("请输入A的值：");
            this.A = int.Parse(Console.ReadLine());
            Console.WriteLine("请输入B的值：");
            this.B = int.Parse(Console.ReadLine());
        }
        public virtual void DisplayResult()
        {

        }
    }
}
